package cn.myschool.pojo;

import cn.myschool.entity.Student;

public class Student2 extends Student {
    private String gname;

    public Student2() {
    }

    public Student2(String gname) {
        this.gname = gname;
    }

    public Student2(String sname, String sex, String telephone, String qq, String wechat, long gradeid, String enterday, String fromcity, String birthday, String adress, String pass, String idcardpic, String gname) {
        super(sname, sex, telephone, qq, wechat, gradeid, enterday, fromcity, birthday, adress, pass, idcardpic);
        this.gname = gname;
    }

    public Student2(int stuno, String sname, String sex, String telephone, String qq, String wechat, long gradeid, String enterday, String fromcity, String birthday, String address, String pass, String idcardpic, String gname) {
        super(stuno, sname, sex, telephone, qq, wechat, gradeid, enterday, fromcity, birthday, address, pass, idcardpic);
        this.gname = gname;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    @Override
    public String toString() {
        return "Student2{" +
                "gname='" + gname + '\'' +super.toString()+
                '}';
    }
}
